package de.grosjohann.android.feuerwehr.domain;

import java.io.Serializable;

import de.grosjohann.android.feuerwehr.type.FMSStatusType;

public class Fahrzeug
  implements Serializable {

  private final String identifier;
  private final String description;
  private FMSStatusType status = FMSStatusType.EINSATZBEREIT_GH;

  public Fahrzeug(String newIdentifier, String newDescription) {
    identifier = newIdentifier;
    description = newDescription;
  }

  public FMSStatusType getStatus() {
    return status;
  }

  public void setStatus(FMSStatusType newStatus) {
    status = newStatus;
  }

  public String getIdentifier() {
    return identifier;
  }

  public String getDescription() {
    return description;
  }

  @Override
  public String toString() {
    return identifier + ": " + status.name();
  }
}
